package com.sdtw.bookshop.shop.service.impl;

import com.sdtw.bookshop.shop.bean.BookKindInfo;
import com.sdtw.bookshop.shop.mapper.BookKindMapper;
import com.sdtw.bookshop.shop.service.BookKindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookKindServiceImpl implements BookKindService {

    @Autowired
    private BookKindMapper bookKindMapper;
    @Override
    public List<BookKindInfo> findAll() {
        return bookKindMapper.findAll();
    }
    public List<BookKindInfo> findAll1(Integer id) {
        return bookKindMapper.findById(id);
    }
}
